home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / MUI / MCC_TimeText / Developer / Autodocs / MCC_TimeText.doc
Text File  |  1997-10-07  |  2KB  |  97 lines

  1. TABLE OF CONTENTS
  2.  
  3. TimeText/--background--
  4. TimeText/MUIA_TimeText_TimeFormat
  5. TimeText/--background--
  6.  
  7.    NAME
  8.     TimeText -- ... (V12)
  9.  
  10.    FUNCTION
  11.     TimeText is a Custom Class of the Magic User Interface © by Stefan
  12.     Stuntz. It's a subclass of text-class and time-class.
  13.  
  14.     The idea of this class was born during developing my Gregor
  15.     application.
  16.  
  17.     MUI public custom class that displaying a text gadget for time
  18.     strings. The display format of the time string can be freely defined.
  19.  
  20.    NOTES
  21.     None.
  22.  
  23.    SEE ALSO
  24.     MCC_Time.doc
  25. TimeText/MUIA_TimeText_TimeFormat
  26.  
  27.    NAME
  28.     MUIA_TimeText_TimeFormat, STRPTR [ISG] -- Time format string (V12)
  29.  
  30.    SYNOPSIS
  31.     MUIA_TimeText_TimeFormat, "%H:%M:%S",
  32.  
  33.     \*result =*\ set(obj,MUIA_TimeText_TimeFormat,tfs);
  34.     \*result =*\ get(obj,MUIA_TimeText_TimeFormat,&tfs);
  35.  
  36.    FUNCTION
  37.     The MUIA_TimeText_TimeFormat attribute of a TimeText object can
  38.     be used to define a time format.
  39.     Defaults to system Locale->loc_ShortTimeFormat or "%H:%M" if no
  40.     locale can be found.
  41.  
  42.    INPUTS
  43.     tfs - Time format string
  44.  
  45.    RESULT
  46.     tfs - Time fromat string
  47.  
  48.    NOTES
  49.     Syntax of Amiga compatible % commands:
  50.     %q - hour using 24-hour style
  51.     %Q - hour using 12-hour style
  52.     %H - hour using 24-hour style with leading 0s
  53.     %I - hour using 12-hour style with leading 0s
  54.     %p - AM or PM strings
  55.     %M - the number of minutes with leading 0s
  56.     %S - number of seconds with leadings 0s
  57.     %r - same as "%I:%M:%S %p"
  58.     %R - same as "%H:%M"
  59.     %T - same as "%H:%M:%S"
  60.     %X - same as "%H:%M:%S"
  61.  
  62.     Syntax of % commands:
  63.     %Th1f - hour using 12h style with leading 0s
  64.     %Th1v - hour using 12h style without leading 0s
  65.     %Th2f - hour using 24h style with leading 0s
  66.     %Th2v - hour using 24h style without leading 0s
  67.     %Tpso - a/p
  68.     %Tpsu - A/P
  69.     %Tplo - am/pm
  70.     %Tplu - AM/PM
  71.     %Tmf  - minute with leading 0s
  72.     %Tmv  - minute without leading 0s
  73.     %Tsf  - second with leading 0s
  74.     %Tsv  - second without leading 0s
  75.     %Tj.   - jd time starting with '.'
  76.     %Tj,   - jd time starting with ','
  77.     %Tj0   - jd time starting with '0.'
  78.     %Tj1   - jd time starting with '0,'
  79.  
  80.     %Tzh?? : hours only
  81.     %Tzm?  : 0100 (always with leading 0s)
  82.     %TzM?? : 01:00
  83.     %Tz?z? : Use Z   for UTC/GMT
  84.     %Tz?0? : Use +00 for UTC/GMT
  85.     %Tz??f : use leading 0s
  86.     %Tz??v : do not use leading 0s
  87.  
  88.     %Tc1 : Use DST for summer->winter change hour
  89.     %Tc2 : Use I/II for summer->winter change hour
  90.     %Tc3 : Use a/b for summer->winter change hour (24h only) - on 12h
  91.            falls back to 2
  92.  
  93.    BUGS
  94.     No known bugs.
  95.  
  96.    SEE ALSO
  97.